package com.jh.fcsm.beans.sys.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 树结点类
 *
 * @author szx
 * @date 2018/03/01
 */
public class TreeNode implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;
    protected String id;
    protected String parentId;
    protected String parentCode;
    protected String type;
    protected String shortCode;
    protected String code;
    protected String name;
    protected Integer isLeaf;
    List<TreeNode> children = new ArrayList<TreeNode>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public void add(TreeNode node) {
        children.add(node);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getShortCode() {
        return shortCode;
    }

    public void setShortCode(String shortCode) {
        this.shortCode = shortCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(Integer isLeaf) {
        this.isLeaf = isLeaf;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }
}
